import express from 'express'
import {
  followUser,
  getFollowers,
  getFollowing,
  unfollowUser,
} from '../controllers/follow.controller'
import { auth } from '../middleware/auth'

const router = express.Router()

router.post('/:targetId', auth, followUser)
router.delete('/:targetId', auth, unfollowUser)
router.get('/:userId/followers', getFollowers)
router.get('/:userId/following', getFollowing)

export default router
